<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>

</head>
<body>
  发ajax请求跳页面
  <script src="plugins/jquery/jquery.min.js"></script>
  <script src="js/public.js"></script>
  <script>
    $(function () {
          //ajax提交数据
          $.ajax({
            type: "get",
            url: "main.html",
            success: function (r) {
              if (r.resultCode == 200) {
                alert("success")
              } else {
                alert("fail")
              }
            }
          });
    })
  </script>
</body>
</html>